package com.oe.market.modules.base.model.dto;


import com.google.gson.annotations.SerializedName;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class AccountDto {
    public String phone;
    @NotNull(message = "帐号不能为空")
    @Size(max = 16, min = 8, message = "不符合规则的帐号")
    public String user;
    @Size(max = 16, min = 8, message = "不符合规则的密码")
    public String password;
    public String source;
    @SerializedName(value = "last_login")
    public Integer lastLogin;
    @Size(max = 64, min = 64, message = "不符合规则的令牌")
    @SerializedName(value = "current_sign")
    public String currentSign;
    @Email
    public String mail;
}
